<?php

// Copyright (c) 2015, Fujana Solutions - Moritz Maleck. All rights reserved.
// For licensing, see LICENSE.md

require __DIR__.'/../init.php';

if(!is_login()) {
    exit;
}

require 'pluginconfig.php';

$upload = image_upload('upload');

if(!$upload) {
    echo "<script>alert('".$uploadimgerrors4."');</script>";
} else {
    echo '<script>history.back();</script>';
}
